Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库无法连接上 #856

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

数据库无法连接上 #856

wants to merge 1 commit into from

Conversation

Junior233
Copy link

错误如下:
[Entrypoint]: MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user

Remove MYSQL_USER="root" and use one of the following to control the root user password:

  • MYSQL_ROOT_PASSWORD

  • MYSQL_ALLOW_EMPTY_PASSWORD

  • MYSQL_RANDOM_ROOT_PASSWORD

解决办法见:
https://stackoverflow.com/questions/66831863/mysql-docker-container-keeps-restarting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant